package org.ivwsqii.proxy.cglibDynamicProxy;

public class Client {

    public static void main(String[] args) {
        BuyHouse buyHouse = new BuyHouse();
        CglibProxyInterceptor cglibProxy = new CglibProxyInterceptor(buyHouse);

        BuyHouse instance = (BuyHouse) cglibProxy.getInstance();
        instance.buyHouse();
    }

}
